package com.zxk.weixinpay.controller;

import com.zxk.weixinpay.config.WeChatConfig;
import com.zxk.weixinpay.mapper.VideoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @Autowired
    private WeChatConfig weChatConfig;



    @GetMapping("test")
    public Object test() {
        return "hello world!!!!!!!";
    }


    @GetMapping("test_config")
    public Object testConfig() {
        return weChatConfig.toString();
    }


    @Autowired
    private VideoMapper videoMapper;
    @GetMapping("test_db")
    public Object testDB() {
        return videoMapper.findAll();
    }
}
